<link rel="stylesheet" type="text/css" media="screen" href="css/administration.css" />
<style>
div.polje_item input[type=text]:disabled{
	text-align:center;
}
</style>
<div class="main_body">
<div class="top_menu">
<strong>Administriranje Poreza</strong>
	<div class="kategorija_listbox"></div>
	<div class="top_navigacija">
		<span id="top_izvestaj" name="top_izvestaj">{{$top_izvestaj}}</span>Nađeno je {{$broj_polja}} unosa na {{$broj_strana}} &nbsp;strana. {{$link_pocetno}} {{$link_prethodno}} {{$link_strane}} {{$link_sledece}} {{$link_poslednje}} 
	</div>
	
	<div id="top_tools">
	<input type="button" onclick="new_Porezi()" value="Dodaj polje" />
	<input type="hidden" value="{{$broj_polja_na_strani}}" id="broj_polja_na_strani" />
	</div>
</div><br clear="all" />
<!------------NEW START--------------------->
<form class="area" id="p_new" style="display:none;">
	<div class="p_item">
		&nbsp;Naziv: <input id="p_name_new" type="text" value="" onchange="" />
		&nbsp;Procenat: <input id="p_percent_new" type="text" value="" onchange="MM_validateForm('p_percent_new','','RinRange0:100');return document.MM_returnValue" />
		<br class="all" />
		<a id="save_{{$p_id}}" href="javascript:void(0);" onclick="add_Porezi();" title="kliknite da sačuvate nov unos 'p_name_new'">Sačuvaj</a>
	</div>
</form>
<!-------------NEW END-------------------->
<form class="area" id="glavnaForma">
<div class="polje_legend">
	<div class="polje_legend_item_id">ID</div>
	<div class="polje_legend_item">Naziv </div>
	<div class="polje_legend_item">Vrednost (%)</div>
	<div class="polje_legend_item">Operacija</div>
</div>
<div id="polje_lista">
	{{%loop start p_id}}
<div class="polje_item" title="{{$p_name}} - {{$jed_percent}}">
	<input type="hidden" value="{{$p_id}}" id="id_{{$p_id}}" />
	<input type="hidden" id="r_{{$p_id}}" value="0" />
	<input name="text" type="text" disabled="disabled" style="width:40px; text-align:center" value="{{$p_id}}" />
	<input id="p_name_{{$p_id}}" type="text" disabled="disabled" value="{{$p_name}}" title="{{$p_name}}" onchange="" />
	<input type="text" disabled="disabled" id="p_percent_{{$p_id}}" title="{{$p_percent}}" onblur="MM_validateForm('p_percent_{{$p_id}}','','RinRange0:100');return document.MM_returnValue" value="{{$p_percent}}" />

	<div class="item_tools">
		<a id="delete_{{$p_id}}" href="javascript:void(0);" onclick="del_Porezi('{{$p_id}}');" title="kliknite da izbrišete polje {{$p_name}}" style="display:none;">
			<img src="gui/icons/delete_14.gif" alt="" />
		</a>
		<a id="save_{{$p_id}}" href="javascript:void(0);" onclick="saveChanges_Porezi('{{$p_id}}');" title="kliknite da sačuvate izmene na polju {{$p_name}}" style="display:none;">
			<img src="gui/icons/save.gif" alt="" />
		</a>
		<a id="edit_{{$p_id}}" href="javascript:void(0);" onclick="changeEdit_Porezi('{{$p_id}}');" title="kliknite za izmenu polja {{$p_name}}" >
			<img src="gui/icons/edit.gif" alt="" />
		</a>
	</div>
	
	
</div>
	{{%loop end}}
</div>
</form>